from selenium.webdriver.common.by import By
from autoTest_ecshop.base_page.base import BasePage


class ProductInformationPage(BasePage):
    # 获取加入购物车按钮定位器
    addCart_loc = (By.XPATH,'//*[@id="ECS_FORMBUY"]/ul/li[9]/a[1]')

    def addCart(self):
        self.btn_click(self.addCart_loc)